<B:UIWS x:Class="WPFExcelReport.WSTYTBOX"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:B="clr-namespace:WPFExcelReport;assembly=TWASTAMM"   
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:WT="clr-namespace:WPFExcelReport;assembly=TWTGEW" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                    xmlns:IMG="clr-namespace:WPFExcelReport;assembly=TICC_IMAGES" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <B:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </B:UIWS.Resources>
    <Grid Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/> 
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Image  Name="cImage"
                Grid.Row="0" Grid.RowSpan="2" Grid.Column="1"  Width="200" Height="200" VerticalAlignment="Center"
               Visibility="{Binding IsImage,ElementName=TV,Converter={StaticResource bv}}" HorizontalAlignment="Center"
               Source="{Binding Path=PHOTOLINK, ElementName=TV}" 
               Stretch="UniformToFill" 
               MouseRightButtonUp="Image_MouseRightButtonUp" 
               MouseLeftButtonDown="Image_MouseLeftButtonUp" 
               />
        <StackPanel Grid.Row="0" Grid.Column="0"  Name="ZoneMaster">
            <me:UWS03TYT  IsEdit="{Binding IsEdit,ElementName=TV}"  
                           IsExtProd="{Binding IsExtProd,ElementName=TV}" 
                          DENUM="{Binding DENUM,ElementName=TV}"  
                          RBRTOL="{Binding RBRTOL,ElementName=TV}"  
                          RWBRT="{Binding RWBRT,ElementName=TV}" 
                          FFDDIK="{Binding FFDDIK,ElementName=TV}" 
                          FBRTU="{Binding FBRTU,ElementName=TV}" 
                              GWBBRT="{Binding GWBBRT,ElementName=TV}"  
                       GFDISM="{Binding GFDISM,ElementName=TV}"
                          />
            <me:UIWS22TYT Visibility="{Binding IsWS22T,ElementName=TV,Converter={StaticResource bv}}" 
                     x:Name="cWS22"
                      IsAuto="True"
                           GWBBRT="{Binding GWBBRT,ElementName=TV}"  
                       GFDISM="{Binding GFDISM,ElementName=TV}"
                       EXPM="{Binding ENVPM,ElementName=TV}"  
                       IsEdit="{Binding IsEdit,ElementName=TV}" 
                       IsSaved="{Binding IsSaved,ElementName=TV}" 
                       WTKEY="{Binding WTKEY,ElementName=TV}"  
                       ORDERNUM="{Binding KEY,ElementName=TV}"/>
            <me:UWSLS  IsEdit="{Binding IsEdit,ElementName=TV}" 
                       />
        </StackPanel>
    </Grid>
</B:UIWS>
